package com.wens.monitor.ws;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;

import com.wens.monitor.model.Frequence;

@Path("/frequence")
public class FrequenceWebService {
	private static int time = 5;
	
	public static int getTime() {
		return time;
	}

	public static void setTime(int time) {
		FrequenceWebService.time = time;
	}

	@GET
	@Produces("application/json")
	public Frequence getFrequence() {
		return new Frequence(time);
	}
}
